package com.jumi.microservice.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jumi.microservice.dto.reponse.GoldPromoterReviewReponse;
import com.jumi.microservice.dto.reponse.ListLevelDataReponse;
import com.jumi.microservice.entity.JmGoldPromoterReview;
import com.jumi.microservice.mapper.JmGoldPromoterReviewMapper;
import com.jumi.microservice.service.IJmGoldPromoterReviewService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 金牌推广商表 服务实现类
 * </p>
 *
 * @author 要挑客户管理团队
 * @since 2020-08-11
 */
@Service
public class JmGoldPromoterReviewServiceImpl extends ServiceImpl<JmGoldPromoterReviewMapper, JmGoldPromoterReview> implements IJmGoldPromoterReviewService{

    @Autowired
    JmGoldPromoterReviewMapper mapper;

    @Override
    public Page getPage(Page page, Wrapper wrapper) {
        return mapper.getPage(page,wrapper);
    }

    @Override
    public GoldPromoterReviewReponse getGoldInfoById(Integer id) {
        return mapper.getGoldInfoById(id);
    }

    @Override
    public ListLevelDataReponse getListLevel(Integer id , Integer time) {
        return mapper.getListLevel(id, time);
    };

}
